namespace PortalWeb.Dao.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class AddSystemFunctionIcon1 : DbMigration
    {
        public override void Up()
        {
            RenameColumn(table: "dbo.Functions", name: "SystemFunction_Id", newName: "Function_Id");
            RenameIndex(table: "dbo.Functions", name: "IX_SystemFunction_Id", newName: "IX_Function_Id");
            AlterColumn("dbo.Functions", "Type", c => c.Int(nullable: false));
        }
        
        public override void Down()
        {
            AlterColumn("dbo.Functions", "Type", c => c.String());
            RenameIndex(table: "dbo.Functions", name: "IX_Function_Id", newName: "IX_SystemFunction_Id");
            RenameColumn(table: "dbo.Functions", name: "Function_Id", newName: "SystemFunction_Id");
        }
    }
}
